﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Business.Configuration
{
    public class Bootstrapper
    {
        public static void InitializeObjectFactory()
        {
            StructureMap.ObjectFactory.Initialize(x => x.Scan(y =>
            {
                //scan all assemblies in the app dir for registry classes.
                y.AssembliesFromApplicationBaseDirectory();
                y.LookForRegistries();
            }));
        }
    }
}
